package com.zhu.transaction.service;

import com.zhu.transaction.pojo.Favorite;
import com.zhu.transaction.pojo.Product;
import com.zhu.transaction.pojo.state.BackState;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhu
 * @since 2021-01-07
 */
public interface FavoriteService {
    //收藏商品
    BackState favoriteProduct(String userId, String productId);

    //获取用户收藏的商品
    List<Favorite> getFavoriteProductsByPage(String userId, Integer curPage);

    //取消商品的收藏
    BackState cancelFavoriteProduct(Object[] favoriteIds);
}
